home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / xml2po / xhtml.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2007-04-29  |  2.1 KB  |  62 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4.  
  5. class xhtmlXmlMode:
  6.     '''Class for special handling of XHTML document types.'''
  7.     
  8.     def getIgnoredTags(self):
  9.         '''Returns array of tags to be ignored.'''
  10.         return []
  11.  
  12.     
  13.     def getFinalTags(self):
  14.         """Returns array of tags to be considered 'final'."""
  15.         return [
  16.             'p',
  17.             'li',
  18.             'pre']
  19.  
  20.     
  21.     def getTreatedAttributes(self):
  22.         '''Returns array of tag attributes which content is to be translated'''
  23.         return [
  24.             'title',
  25.             'alt']
  26.  
  27.     
  28.     def getSpacePreserveTags(self):
  29.         '''Returns array of tags in which spaces are to be preserved.'''
  30.         return [
  31.             'pre']
  32.  
  33.     
  34.     def preProcessXml(self, doc, msg):
  35.         '''Preprocess a document and perhaps adds some messages.'''
  36.         pass
  37.  
  38.     
  39.     def postProcessXmlTranslation(self, doc, language, translators):
  40.         '''Sets a language and translators in "doc" tree.
  41.  
  42.         "translators" is a string consisted of translator credits.
  43.         "language" is a simple string.
  44.         "doc" is a libxml2.xmlDoc instance.'''
  45.         pass
  46.  
  47.     
  48.     def getStringForTranslators(self):
  49.         """Returns None or a string to be added to PO files.
  50.  
  51.         Common example is 'translator-credits'."""
  52.         pass
  53.  
  54.     
  55.     def getCommentForTranslators(self):
  56.         '''Returns a comment to be added next to string for crediting translators.
  57.  
  58.         It should explain the format of the string provided by getStringForTranslators().'''
  59.         pass
  60.  
  61.  
  62.